package com.springboot.springbootweb.jobtest;

import org.springframework.scheduling.annotation.Scheduled;

import java.time.LocalDateTime;

//@Component
public class WebTask {

    // 每五秒执行一次
    @Scheduled(cron = "0/5 * * * * ?")
    public void TaskJob() {
        System.out.println("test second annotation style ..." + LocalDateTime.now());
    }
}